// 引入需要的模块
import { createRouter, createWebHashHistory } from 'vue-router'
import routes from './routes'

const router = createRouter({
  history: createWebHashHistory(),
  routes,
  strict: true, // 是否应该禁止尾部斜杠
  scrollBehavior: () => ({ left: 0, top: 0 }),
})

// router.beforeEach(async (to, from, next) => {
//   next()
// })

// 导出路由
export default router
